Region Code | Region Name | Availability Zones |
---|---|---|
us-east-1* | N. Virginia | us-east-1a us-east-1b us-east-1c us-east-1d us-east-1e |
us-east-2 | Ohio | us-east-2a us-east-2b us-east-2c |
us-west-1* | N. California | us-west-1a us-west-1b us-west-1c |
us-west-2 | Oregon | us-west-2a us-west-2b us-west-2c |
eu-west-1 | Ireland | eu-west-1a eu-west-1b eu-west-1c |
eu-central-1 | Frankfurt | eu-central-1a eu-central-1b |
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type CachingMap[K comparable, V any] struct { | |
// double buffering mechanism | |
index int64 | |
maps [2]map[K]V | |
// write queue | |
queue chan struct { | |
key K | |
value V | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git |
Clojure is an amazingly powerful language. Using it (and watching Rich Hickey videos) has changed the way I think about programming, and the way I code in general. Once I learned the basics of the language, which was a relatively quick process, I fell in love and couldn't look back. I hope this post can help others who are new to Clojure get up and running quickly and painlessly.
This post is opinionated in the sense that I'll suggest certain tools to help those who are new to this scene get on their feet. The things you'll need are:
- Leiningen (pronounced LINE-ing-en) - This is like a package manager, build tool, task manager, and more in one tool. Think npm or nuget, but with more capabilities. There is at least one other build tool for Clojure (boot), but Leiningen is the most widely used.
- JDK - Clojure runs on Java. Throw out any qualms you may have about Java, we aren't coding in Java (though we can through Clojure, and sometimes tha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1- Install these packages in your dev dependencies using this command: | |
npm i -D eslint eslint-config-airbnb eslint-config-prettier eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-node eslint-plugin-prettier eslint-plugin-react prettier | |
// 2- Create ".eslintrc.json" file in the root directory with these configration: | |
{ | |
"extends": ["airbnb", "prettier", "plugin:node/recommended"], | |
"plugins": ["prettier"], |
NewerOlder